package com.hq.common.utils.cipher;


import org.springframework.util.DigestUtils;

/**

 * @since 2015-02-08 12:36
 */
public final class MD5 {
    public static String md5DigestAsHex(String plaintext) {
        return DigestUtils.md5DigestAsHex(plaintext.getBytes());
    }

    public static String md5DigestAsHex(byte[] bytes) {
        return DigestUtils.md5DigestAsHex(bytes);
    }

}
